package com.monkey.server.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import lombok.Data;

@Data
@Component
@ConfigurationProperties(prefix = "monkey.cluster")
public class ClusterProperties {
    private String nodeName;
    private String nodeCode;
    private Integer nettyport;
    private Integer heartbeat = 3000;
    private Integer persistFirstTimeAfter = 4000;
    private Integer persistFrequency = 5000; // 单位 hao秒 
}
